<template>
    <RouterView v-slot="{ Component }">
        <component :is="Component" />
    </RouterView>
</template>

<script setup lang="ts">
onErrorCaptured((err) => {
    const systemError = useStoreSystemError();
    systemError.updateSystemError({
        message: err.message,
        stack: err.stack
    });
    return false;
});
</script>
